package providers

import (
	"fmt"
	"github.com/goravel/framework/contracts/foundation"
)

type AppServiceProvider struct {
}

func (receiver *AppServiceProvider) Register(app foundation.Application) {

}

// Boot 启动服务提供者，如果要获取db，cache等facades，需要在Boot方法中执行
func (receiver *AppServiceProvider) Boot(app foundation.Application) {

	fmt.Println("开始缓存全部菜单")
	//services.NewMenuService().CacheAll()

	fmt.Println("开始缓存全部数据字典")
	//services.NewDictService().CacheAll()

	fmt.Println("开始缓存所有角色")
	//services.NewRoleService().CacheAll()
}
